package com.ybox.auth.controller;

import com.ybox.auth.service.LoginService;
import com.ybox.common.core.web.domain.AjaxResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import javax.validation.constraints.Email;

/**
 * @Author ych
 * @create 2023-2023/4/22-21:40
 */
@Controller
public class ActiveController {
    @Autowired
    private LoginService loginService;

    @GetMapping("active")
    public String  sendActiveCode(@RequestParam @Email String email, @RequestParam String uuid){
        loginService.activeEmail(email, uuid);
        return "Jump";
    }
}
